package com.gitee.wsl.scheduler.task

import kotlinx.coroutines.InternalForInheritanceCoroutinesApi
import kotlinx.coroutines.Job

@OptIn(InternalForInheritanceCoroutinesApi::class)
interface JobSchedulerTask<JOB: Job>: SchedulerTask{
    val job: JOB
    override fun cancel() = job.cancel()

    override val isCancelled: Boolean
        get() = job.isCancelled
}